package com.prs.crm.domain.purchase;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.stock.PurchaseDetail;

/**
 * @author 兰小刚
 * @version 创建时间：2010-7-2 上午10:22:11
 * 类说明
 */
@Entity
@Table(name="purchase_SupplierInquiryDetail")
public class PurchaseSupplierInquiryDetail extends BaseEntity {
	private static final long serialVersionUID = 1L;
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	@ManyToOne
	private PurchaseDetail purchasedetail;
	
	private Double discount;
	
	private Double price;
	
	private Double total;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public PurchaseDetail getPurchasedetail() {
		return purchasedetail;
	}

	public void setPurchasedetail(PurchaseDetail purchasedetail) {
		this.purchasedetail = purchasedetail;
	}

	public Double getDiscount() {
		return discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}
	
	
	
	

}
